<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    {:token()}
    <input type="hidden" name="row[id]" value="{$row.id}">

<!--    <div class="form-group">-->
<!--        <label for="c-username" class="control-label col-xs-12 col-sm-2">{:__('Username')}:</label>-->
<!--        <div class="col-xs-12 col-sm-4">-->
<!--            <input id="c-username" data-rule="required" class="form-control" name="row[username]" type="text" value="{$row.username|htmlentities}">-->
<!--        </div>-->
<!--    </div>-->
    <div class="form-group">
        <label for="c-avatar" class="control-label col-xs-12 col-sm-2">{:__('Avatar')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-avatar" data-rule="" class="form-control" size="50" name="row[avatar]" type="text" value="{$row.avatar}">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-avatar" class="btn btn-danger faupload" data-input-id="c-avatar" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-avatar"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-avatar" class="btn btn-primary fachoose" data-input-id="c-avatar" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-avatar"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-avatar"></ul>
        </div>
    </div>
    <div class="form-group">
        <label for="c-nickname" class="control-label col-xs-12 col-sm-2">{:__('Nickname')}:</label>
        <div class="col-xs-12 col-sm-4">
            <input id="c-nickname" data-rule="required" class="form-control" name="row[nickname]" type="text" value="{$row.nickname|htmlentities}">
        </div>
    </div>
<!--    <div class="form-group">-->
<!--        <label for="c-password" class="control-label col-xs-12 col-sm-2">{:__('Password')}:</label>-->
<!--        <div class="col-xs-12 col-sm-4">-->
<!--            <input id="c-password" data-rule="password" class="form-control" name="row[password]" type="password" value="" placeholder="{:__('Leave password blank if dont want to change')}" autocomplete="new-password" />-->
<!--        </div>-->
<!--    </div>-->
<!--    <div class="form-group">-->
<!--        <label for="c-email" class="control-label col-xs-12 col-sm-2">{:__('Email')}:</label>-->
<!--        <div class="col-xs-12 col-sm-4">-->
<!--            <input id="c-email" data-rule="email" class="form-control" name="row[email]" type="text" value="{$row.email|htmlentities}">-->
<!--        </div>-->
<!--    </div>-->
    <div class="form-group">
        <label for="c-name" class="control-label col-xs-12 col-sm-2">真实姓名:</label>
        <div class="col-xs-12 col-sm-4">
            <input id="c-name" data-rule="required" class="form-control" name="row[name]" type="text" value="{$row.name|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-mobile" class="control-label col-xs-12 col-sm-2">{:__('Mobile')}:</label>
        <div class="col-xs-12 col-sm-4">
            <input id="c-mobile" data-rule="mobile" class="form-control" name="row[mobile]" type="text" value="{$row.mobile|htmlentities}">
        </div>
    </div>


    <div class="form-group">
        <label for="c-shop_logo" class="control-label col-xs-12 col-sm-2">车行LOGO:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-shop_logo" data-rule="" class="form-control" size="50" name="row[shop_logo]" type="text" value="{$row.shop_logo}">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-shop_logo" class="btn btn-danger faupload" data-input-id="c-shop_logo" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-shop_logo"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-shop_logo" class="btn btn-primary fachoose" data-input-id="c-shop_logo" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-shop_logo"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-shop_logo"></ul>
        </div>
    </div>
    <div class="form-group">
        <label for="c-shop_name" class="control-label col-xs-12 col-sm-2">车行名称:</label>
        <div class="col-xs-12 col-sm-4">
            <input id="c-shop_name" data-rule="required" class="form-control" name="row[shop_name]" type="text" value="{$row.shop_name|htmlentities}">
        </div>
    </div>

    <div class="form-group">
        <label for="c-city" class="control-label col-xs-12 col-sm-2">归属地区:</label>
        <div class="col-xs-12 col-sm-4">
            <div class='control-relative'>
                <input id="c-city" class="form-control" data-toggle="city-picker" name="row[city]" type="text" value="{$row.city|htmlentities}" />
            </div>
        </div>
    </div>

    <div class="form-group">
        <label for="c-shop_address" class="control-label col-xs-12 col-sm-2">车行地址:</label>
        <div class="col-xs-12 col-sm-4">
            <input id="c-shop_address" data-rule="required" class="form-control" name="row[shop_address]" type="text" value="{$row.shop_address|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">车行介绍:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea name="row[shop_intro]" class="form-control" cols="30" rows="5" >{$row.shop_intro|htmlentities}</textarea>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">出口服务商:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_radios('row[is_export_shop]', ['0'=>'否', '1'=>'是'],$row['is_export_shop'])}
        </div>
    </div>

    <div class="form-group">
        <label for="c-id_photo" class="control-label col-xs-12 col-sm-2">身份证正反面:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-id_photo" data-rule="" class="form-control" size="50" name="row[id_photo]" type="text" value="{$row.id_photo}">
                <div class="input-group-addon no-border no-padding">
                    <span><button data-multiple="true" type="button" id="faupload-id_photo" class="btn btn-danger faupload" data-input-id="c-id_photo" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-id_photo"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button data-multiple="true" type="button" id="fachoose-id_photo" class="btn btn-primary fachoose" data-input-id="c-id_photo" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-id_photo"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-id_photo"></ul>
        </div>
    </div>

    <div class="form-group">
        <label for="c-license" class="control-label col-xs-12 col-sm-2">营业执照:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-license" data-rule="" class="form-control" size="50" name="row[license]" type="text" value="{$row.license}">
                <div class="input-group-addon no-border no-padding">
                    <span><button data-multiple="true" type="button" id="faupload-license" class="btn btn-danger faupload" data-input-id="c-license" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-license"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button data-multiple="true" type="button" id="fachoose-license" class="btn btn-primary fachoose" data-input-id="c-license" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-license"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-license"></ul>
        </div>
    </div>




<!--    <div class="form-group">-->
<!--        <label for="c-level" class="control-label col-xs-12 col-sm-2">会员级别:</label>-->
<!--        <div class="col-xs-12 col-sm-4">-->
<!--            <input id="c-level" data-source="user/level/index"  class="form-control selectpage" name="row[level]" type="text" value="{$row.level|htmlentities}">-->
<!--        </div>-->
<!--    </div>-->



    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_radios('row[status]', ['normal'=>__('Normal'), 'hidden'=>__('Hidden')], $row['status'])}
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
